public class Sort {
    /*public static void sort(int[] array){
        for ( int i = 1; i < array.length; i++) {
            int tmp = array[i];
            int j = i-1;
            for (; j >= 0 ; j--) {
                if(array[j] > tmp){
                    array[j+1] = array[j];
                }else{
                    //array[j+1] = tmp;
                    break;
                }
            }
            array[j+1] = tmp;
        }
    }*/


    /*public static void sort(int[] array){
        //int minIndex = 0;
        for (int i = 0; i < array.length; i++) {
            int minIndex = i;//minIndex应该定义在这里，保证每次比较都可以和minIndex比较
            for (int j = i+1; j < array.length; j++) {
                if(array[j] < array[minIndex]){
                    minIndex = j;
                }
            }
            swap(array,minIndex,i);
        }
    }
    private  static void swap(int[] array, int i, int j){
        int tmp = array[i];
        array[i] = array[j];
        array[j] = tmp;
    }*/

    

}

